const { DataTypes, Model, Deferrable } = require("sequelize");
const sequelize = require("../../sequelize");
/**
 * 物流模型
 */
class ExpressCompany extends Model {

};
ExpressCompany.init({
    id:{
        type:DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true
    },
    name:{
        type:DataTypes.STRING
    },
    code:{
        type:DataTypes.STRING,
    },
    order:{
        type:DataTypes.INTEGER
    }
}, {
    sequelize,
    modelName: "ExpressCompany",
    tableName: "express_company",
    createdAt:"create_time",
    updatedAt:"update_time",
})
module.exports = ExpressCompany